You are here: Custom Study Programming > Reference > Classes > Chart > Chart Methods > getAllSymbols

getAllSymbols

The getAllSymbols method returns a string array of all symbols for the chart to which the custom study is attached to.

 

Syntax

String[] getAllSymbols();

Return Value

This method returns an array of string objects representing all loaded symbols on the chart.

If no symbols are loaded, the method returns null.

Example

The following example calls the method, iterates through all symbols, and prints the contents to the debug window.

 

String[] symbols = Chart.getAllSymbols();

if(symbols == null)

{

for(var i = 0; i < symbols.length; i++)

Debug.writeLine("symbol " + i + "/" symbols.length + ": " + symbols[i]);

}

else

Debug.writeLine("No symbols found");

 

 


Copyright © 2006-2009 ActiveTick LLC